import en from '@/locale/en-US.js'
import zh from '@/locale/zh-CN.js'

const t = (key) => {
	const locale = uni.getStorageSync('locale') || 'en';
	// console.log(locale)
	if(locale == 'en'){
		return en[key]
	}else if(locale == 'zh'){
		return zh[key]
	}
}
uni.$t = t